<?php echo form_open("setting/save_setting"); ?>
		<table class="setting">
			<tbody>
			<tr>
				<th>昵称</th>
				<td>
				<?php
					$ndata = array('name' => 'n_name', 'id' => 'n_name','size' => '30','tabindex'=>'1','value'=>$n_name);
					echo form_input($ndata);
				?>
				</td>
			</tr>
			<tr>
				<th>头像</th>
				<td valign="top"><img src="<?php echo $photo_path ;?>" width="120" height="120" class="avatar" style=" 50% 50% no-repeat" alt="<?php echo $this->session->userdata('user_name');?>的头像">
				<?php
					#$pdata = array('name' => 'photo', 'id' => 'photo','value'=>$photo_path);
					echo form_hidden('photo_path', $photo_path);
				?>
					<div id="update-avatar-link" class=""><a tabindex="2" href="<?php echo base_url();?>setting/avatar">更新</a></div></td>
				</tr>
			
			<!--
			<tr>
				<th>当前城市</th>
				<td>
					<input type="hidden" id="txt-city" value="北京">
					<input id="user-lang" type="hidden" value="zh_CN">
					<select id="setting-province" name="province" style="width: auto; "><option>北京</option><option>上海</option><option>天津</option><option>重庆</option><option>河北</option><option>山西</option><option>内蒙古</option><option>辽宁</option><option>吉林</option><option>江苏</option><option>浙江</option><option>安徽</option><option>福建</option><option>江西</option><option>山东</option><option>河南</option><option>湖北</option><option>湖南</option><option>海南</option><option>广东</option><option>广西</option><option>四川</option><option>贵州</option><option>云南</option><option>西藏</option><option>陕西</option><option>甘肃</option><option>青海</option><option>宁夏</option><option>新疆</option><option>黑龙江</option><option>香港</option><option>澳门</option><option>台湾</option><option>海外</option></select><select id="setting-city" name="city" style="display: none; "></select>
				</td>
			</tr>
			-->
			<tr>
				<th>生日</th>
				<td>
				<?php
					$bdata = array('name' => 'birthday', 'id' => 'birthday','class'=>"Wdate", 'onClick'=>"WdatePicker({dateFmt:'yyyy-MM-dd'})",'size' => '30','tabindex'=>'3','value'=>$birthday);
					echo form_input($bdata);
				?>				
				</td>
			</tr>
			<tr>
				<th>公司</th>
				<td>
				<?php
					$cdata = array('name' => 'company', 'id' => 'company','size' => '30','tabindex'=>'4','value'=>$company);
					echo form_input($cdata);
				?>
				</td>
			</tr>
			<tr>
				<th>母校</th>
				<td>
				<?php
					$udata = array('name' => 'university', 'id' => 'university','size' => '30','tabindex'=>'5','value'=>$university);
					echo form_input($udata);
				?>
				</td>
			</tr>
			<tr>
				<th>手机号码</th>
				<td>
				<?php
					$mdata = array('name' => 'mobile', 'id' => 'mobile','size' => '30','tabindex'=>'6','value'=>$phone);
					echo form_input($mdata);
				?>
				</td>
			</tr>
		<tr>
			<th></th>
			<td>
				<?php
					$sdata = array('name' => 'submit', 'id' => 'submit', 'class'=>"btn-update", 'value'=>"保存修改");
					echo form_submit($sdata);
				?>
				
			</td>
		</tr>
		</tbody>
		</table>
		<?php echo validation_errors('<p class="error">'); ?>
	<?php echo form_close();?>